<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ include file="/pages/common/header.jsp"%>
<title>快递公司管理</title>
</head>
<body>
	<div class="contentBody contentborder">
		<div class="tab-pane" id="tabPane">
			<div id="message">${message}</div>
			<div class="tab-page" id="tabPage1">
				<h1 class="tab">快递公司管理</h1>
				<div class="contentborder tableForm">
					<jdf:form bean="entity" scope="request">
						<form action="${dynamicDomain}/courier/save?action=${param.action}" method="post">
							<input type="hidden" name="id">
							<input type="hidden" name="objectId">
							<input type="hidden" name="userId">
							<table class="inputTable">
							    <tr>
									<td class="label cancelBorderLeft">
										<label for="name">公司名称：</label>
									</td>
									<td class="content" colspan="3">
										<input type="text" name="name" size="70"/>
									</td>
								</tr>
								<tr>
                                    <td class="label cancelBorderLeft">
                                        <label for="companyId">所属公司：</label>
                                    </td>
                                    <td class="content" colspan="3">
                                        <input type="hidden" name="companyId" id="companyId" validate="true">
                                        <input type="text" id="companyName" value="${entity.company.name}" size="70" readonly="readonly"/>
                                        <c:if test="${view!=1}">
                                        <a href="${dynamicDomain}/company/select?ajax=1" class="colorbox">选择公司</a>
                                        </c:if>
                                    </td>
                                </tr>
								<tr>
								    <td class="label cancelBorderLeft">
                                        <label for="address">地址：</label>
                                    </td>
                                    <td class="content" colspan="3">
                                        <input type="text" name="address" size="70">
                                    </td>
								</tr>
								<tr>
                                    <td class="label cancelBorderLeft">
										<label for="linkPerson">联系人：</label>
									</td>
									<td class="content">
										<input type="text" name="linkPerson">
									</td>
                                    <td class="label">
                                        <label for="linkTelephone">联系电话：</label>
                                    </td>
                                    <td class="content">
                                        <input type="text" name="linkTelephone">
                                    </td>
                                </tr>
								<tr>
                                    <td class="label cancelBorderLeft">
                                        <label for="status">状态：</label>
                                    </td>
                                    <td class="content" colspan="3">
                                        <select name="status">
                                            <jdf:select dictionaryId="111"/>
                                        </select>
                                    </td>
                                </tr>
								<tr>
									<td class="bottomLabel" colspan="4">
										<div class="right">
											<button type="submit">保存</button>
											<c:if test="${not empty message}">
											<button type="button" onclick="toUrl('${dynamicDomain}/courier/create?action=${param.action}')">继续增加</button>
											</c:if>
											<button type="button" onclick="toUrl('${dynamicDomain}/courier/back')">返回</button>
										</div>
									</td>
								</tr>
							</table>
						</form>
					</jdf:form>
				</div>
			</div>
		</div>
	</div>
	<jdf:tableLabelValidate domain="Courier"/>
	<script type="text/javascript">
       $(".colorbox").colorbox({iframe:true, innerWidth:700, innerHeight:460});
    </script>
</body>
</html>